package killer.board.notice.service;


import killer.board.common.BoardVO;
import killer.board.common.NoneReplyBoardService;
import killer.board.notice.model.NoticeBoardDao;
import killer.board.notice.model.NoticeBoardVO;
import killer.paging.ListVO;

public abstract class NoticeBoardService extends NoneReplyBoardService {
	
	private NoticeBoardDao noticeBoardDao;
	
	
	public abstract BoardVO registerBoardWriting(BoardVO bvo)throws Exception;
	public abstract ListVO getBoardWritingList(int nowPage)throws Exception;
	public abstract BoardVO getBoardWritingByNo(int boardNo) throws Exception;
	
	public void updateNotice(NoticeBoardVO paramNbvo)throws Exception{
		noticeBoardDao.updateNotice(paramNbvo);
	}
	
	public void deleteNotice(int noticeNo)throws Exception{
		noticeBoardDao.deleteNotice(noticeNo);
	}
	
	public NoticeBoardVO getNoticeByNoForUpdate(int noticeNo)throws Exception{
		System.out.println("1");
		System.out.println(noticeNo);
		NoticeBoardVO Nbvo=noticeBoardDao.selectNoticeByNoForUpdate(noticeNo);
		return Nbvo;
	}
}
